package com.test.study.shiro_demo.dao;

import com.test.study.shiro_demo.entity.TUserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface TUserRoleDao {

    TUserRole getById(Integer id);

    List<TUserRole> listByEntity(TUserRole tUserRole);

    TUserRole getByEntity(TUserRole tUserRole);

    List<TUserRole> listByIds(List<Integer> list);

    int insert(TUserRole tUserRole);

    int insertBatch(List<TUserRole> list);

    int update(TUserRole tUserRole);

    int updateByField(@Param("where") TUserRole where, @Param("set") TUserRole set);

    int updateBatch(List<TUserRole> list);

    int deleteById(Integer id);

    int deleteByEntity(TUserRole tUserRole);
  
    int deleteByIds(List<Integer> list);
    
    int countAll();
    
    int countByEntity(TUserRole tUserRole);
    
}